package day04;
import java.util.Scanner;
public class GraphTest {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("想生成几层倒三角：");
        int num = scan.nextInt();
        for (int i=1;i<=num;i++){
            for (int j=1;j<=2*i-1;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
